.class Lcom/netease/newsreader/activity/CustomColumn$ButtonItem;
.super Ljava/lang/Object;
.source "CustomColumn.java"

# interfaces
.implements Lcom/netease/newsreader/util/BasePageViewAdapter$ViewBinder;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/CustomColumn;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ButtonItem"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/CustomColumn;


# direct methods
.method private constructor <init>(Lcom/netease/newsreader/activity/CustomColumn;)V
    .locals 0
    .parameter

    .prologue
    .line 200
    iput-object p1, p0, Lcom/netease/newsreader/activity/CustomColumn$ButtonItem;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/netease/newsreader/activity/CustomColumn;Lcom/netease/newsreader/activity/CustomColumn$ButtonItem;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 200
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/CustomColumn$ButtonItem;-><init>(Lcom/netease/newsreader/activity/CustomColumn;)V

    return-void
.end method


# virtual methods
.method public setViewValue(Landroid/view/View;Ljava/lang/Object;Ljava/lang/String;)Z
    .locals 3
    .parameter "view"
    .parameter "data"
    .parameter "textRepresentation"

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 208
    instance-of v2, p1, Landroid/widget/Button;

    if-eqz v2, :cond_2

    .line 209
    const-string v2, "delete"

    invoke-virtual {p3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 210
    invoke-virtual {p1, v0}, Landroid/view/View;->setEnabled(Z)V

    .line 211
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$ButtonItem;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$10(Lcom/netease/newsreader/activity/CustomColumn;)Landroid/view/View$OnClickListener;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 224
    :cond_0
    :goto_0
    return v0

    .line 212
    :cond_1
    const-string v2, ""

    invoke-virtual {p3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 213
    invoke-virtual {p1, v1}, Landroid/view/View;->setEnabled(Z)V

    goto :goto_0

    .line 216
    :cond_2
    instance-of v2, p1, Landroid/widget/ImageView;

    if-eqz v2, :cond_4

    .line 217
    const-string v2, ""

    invoke-virtual {p3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 218
    invoke-virtual {p1, v1}, Landroid/view/View;->setEnabled(Z)V

    goto :goto_0

    .line 220
    :cond_3
    invoke-virtual {p1, v0}, Landroid/view/View;->setEnabled(Z)V

    goto :goto_0

    :cond_4
    move v0, v1

    .line 224
    goto :goto_0
.end method
